package com.foxzzz.datamemory.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.util.Date;

@Entity
@Data
@Table(uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class BookMetaData {
    @Id
    private String id;

    private String name;
    private Date dateCreate;
    private long orders;
}
